package entity;

/**
 * Title: Set
 * Description: 记录用户的设置
 * @author: 孙佳辉
 */
public class Setting {
	//背单词顺序1为顺序，0为乱序
	public final static int  shunxu=1;
	public final static int  luanxu=0;
	//是否翻译 1为显示 0为不显示翻译
	public final static int fanyi=1;
	public final static int bufanyi=0;
	//每次背的数量
	public final static int bei=30;
	//最少重复数量
	public final static int chongfu=3;
	//每页单词个数
	public final static int meiye=10;

	//用户email
	private String email;

	//顺序或乱序 1为顺序 0为乱序
	private Integer sequence;

	//每次背的数量
	private Integer everynum;

	//最少重复数量
	private Integer leastnum;

	//是否翻译 0为不显示 1为显示翻译
	private Integer istranslate;

	//选择的图书
	private String booktype;

	//每页单词个数
	private Integer bookpag;


	public Setting() {
		super();
	}


	public Setting(String email, Integer sequence, Integer everynum, Integer leastnum, Integer istranslate,
				   String booktype, Integer bookpag) {
		super();
		this.email = email;
		this.sequence = sequence;
		this.everynum = everynum;
		this.leastnum = leastnum;
		this.istranslate = istranslate;
		this.booktype = booktype;
		this.bookpag = bookpag;
	}


	public String getEmail() {
		return email;
	}


	public void setEmail(String email) {
		this.email = email;
	}


	public Integer getSequence() {
		return sequence;
	}


	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}


	public Integer getEverynum() {
		return everynum;
	}


	public void setEverynum(Integer everynum) {
		this.everynum = everynum;
	}


	public Integer getLeastnum() {
		return leastnum;
	}


	public void setLeastnum(Integer leastnum) {
		this.leastnum = leastnum;
	}


	public Integer getIstranslate() {
		return istranslate;
	}


	public void setIstranslate(Integer istranslate) {
		this.istranslate = istranslate;
	}


	public String getBooktype() {
		return booktype;
	}


	public void setBooktype(String booktype) {
		this.booktype = booktype;
	}


	public Integer getBookpag() {
		return bookpag;
	}


	public void setBookpag(Integer bookpag) {
		this.bookpag = bookpag;
	}


	@Override
	public String toString() {
		return "Setting [email=" + email + ", sequence=" + sequence + ", everynum=" + everynum + ", leastnum="
				+ leastnum + ", istranslate=" + istranslate + ", booktype=" + booktype + ", bookpag=" + bookpag + "]";
	}


}
